/* 保留首页所有原有样式 */
* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
}

body {
    font-family: 'Tahoma, Geneva, Verdana, sans-serif';
    background: linear-gradient(135deg, #090a0d, #0f1014);
    color: #f1f1f1;
    min-height: 100vh;
    overflow-x: hidden;
    padding: 0;
    background-attachment: fixed;
    line-height: 1.6;
    font-size: 16px;
}

/* 几何装饰背景 */
body::before {
    content: '';
    position: fixed;
    height: 260%;
    background:
        radial-gradient(circle at 10% 20%, rgba(108, 92, 231, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 118, 117, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 50% 30%, rgba(0, 206, 201, 0.05) 0%, transparent 30%);
}

/* 网格线条背景 */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
}

/* 导航栏 - 浮动布局 */
header {
    background: rgba(15, 16, 20, 0.85);
    border-bottom: 1px solid rgba(108, 92, 231, 0.3);
    box-shadow: 0 0 15px rgba(108, 92, 231, 0.2);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 32px;
    overflow: hidden;
    /* 清除浮动 */
}

.logo {
    float: left;
}

.logo-icon {
    font-size: 32px;
    color: #00cec9;
    margin-right: 12px;
    text-shadow: 0 0 15px rgba(0, 206, 201, 0.7);
    display: inline-block;
    vertical-align: middle;
}

.logo-text {
    font-family: 'Arial Black', sans-serif;
    font-size: 28px;
    font-weight: bold;
    letter-spacing:1px;
    background: linear-gradient(45deg, #6c5ce7,#00cec9);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(108, 92, 251, 0.3);
    display: inline-block;
    vertical-align: middle;
}

.nav-links {
    float: right;
    list-style: none;
    margin-top: 8px;
}

.nav-links li {
    display: inline-block;
    margin-left: 32px;
}

.nav-links a {
    color: #f1f1f1;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 8px 0;
    letter-spacing: 0.8px;
    font-size: 18px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff7675;
    transition: width 0.4s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* 页脚样式 */
footer {
    background: rgba(9, 10, 13, 0.9);
    margin-top: 80px;
    padding: 48px 32px;
    border-top: 1px solid rgba(108, 92, 231, 0.3);
    position: relative;
    clear: both;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.footer-section {
    width: 33.33%;
    float: left;
    padding: 0 15px;
    box-sizing: border-box;
}

.footer-section h3 {
    font-family: 'Arial Black', sans-serif;
    margin-bottom: 24px;
    letter-spacing: 1.6px;
    font-size: 22px;
    color: #00cec9;
    position: relative;
    padding-bottom: 8px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: #ff7675;
}

.footer-section p {
    color: #b2bec3;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #b2bec3;
    text-decoration: none;
    display: inline-block;
    transition: all 0.4s ease;
    font-size: 16px;
}

.footer-links a:hover {
    color: #00cec9;
    transform: translateX(5px);
}

.footer-links i {
    margin-right: 10px;
    width: 20px;
    color: #6c5ce7;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(108, 92, 231, 0.1);
    color: #6c5ce7;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: all 0.4s ease;
    border: 1px solid rgba(108, 92, 231, 0.3);
}

.social-links a:hover {
    background: #6c5ce7;
    color: #f1f1f1;
    transform: translateY(-5px);
}

.subscribe-form {
    position: relative;
}

.subscribe-form input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(24, 25, 31, 0.5);
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: 6px;
    color: #f1f1f1;
    font-size: 16px;
}

.subscribe-form button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #6c5ce7;
    border: none;
    color: #f1f1f1;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.subscribe-form button:hover {
    background: #00cec9;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #b2bec3;
    clear: both;
    font-size: 16px;
}

/* 博客内容页新增样式 */
.post-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 140px 32px 32px;
    position: relative;
    z-index: 1;
}

.post-content-wrapper {
    background: linear-gradient(145deg, rgba(24, 25, 31, 0.8), rgba(15, 16, 20, 0.9));
    border-radius: 12px;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 0 1px 1px rgba(255, 255, 255, 0.05);
    padding: 40px;
    margin-bottom: 40px;
    position: relative;
}

.post-content-wrapper::before {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    bottom: -2px;
    left: -2px;
    background: linear-gradient(45deg,
            #6c5ce7,
            #00cec9,
            #ff7675,
            #6c5ce7);
    background-size: 400%;
    z-index: -1;
    border-radius: 14px;
    animation: gradientFlow 20s linear infinite;
    opacity: 0.5;
}

.post-header {
    margin-bottom: 40px;
}

.post-header h1 {
    font-family: 'Arial Black', sans-serif;
    font-size: 42px;
    line-height: 1.3;
    margin-bottom: 24px;
    background: linear-gradient(45deg, #f1f1f1, #b2bec3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.post-meta-full {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid rgba(108, 92, 231, 0.3);
}

.post-author {
    display: flex;
    align-items: center;
    color: #00cec9;
    font-weight: 500;
    margin-right: 20px;
    padding-right: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.post-meta-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: #b2bec3;
}

.post-meta-details span {
    display: flex;
    align-items: center;
}

.post-meta-details i {
    margin-right: 8px;
    color: #6c5ce7;
}

.post-featured-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    position: relative;
}

.featured-img {
    width: 100%;
    height: auto;
    transition: transform 0.8s ease;
}

.post-featured-image:hover .featured-img {
    transform: scale(1.02);
}

.post-body {
    margin-bottom: 40px;
}

.post-body h2 {
    font-size: 28px;
    margin: 40px 0 20px;
    color: #00cec9;
    position: relative;
    padding-bottom: 10px;
}

.post-body h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: #ff7675;
}

.post-body h3 {
    font-size: 22px;
    margin: 30px 0 15px;
    color: #6c5ce7;
}

.post-body p {
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.8;
}

.post-body blockquote {
    border-left: 3px solid #6c5ce7;
    padding: 15px 20px;
    margin: 30px 0;
    background: rgba(108, 92, 231, 0.05);
    border-radius: 0 6px 6px 0;
    font-style: italic;
    color: #dfe6e9;
}

.post-image-container {
    margin: 40px auto;
    text-align: center;
}

.post-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease;
}

.post-image-container:hover .post-img {
    transform: translateY(-5px);
}

.image-caption {
    color: #b2bec3;
    font-size: 14px;
    margin-top: 10px;
}

.post-body ul, .post-body ol {
    margin: 20px 0 20px 40px;
}

.post-body li {
    margin-bottom: 10px;
    font-size: 18px;
}

.post-body ul {
    list-style-type: disc;
}

.post-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

.post-table th, .post-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.post-table th {
    background: rgba(108, 92, 231, 0.1);
    color: #00cec9;
    font-weight: 600;
}

.post-table tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.post-tags-section {
    margin: 40px 0;
    padding: 20px;
    background: rgba(24, 25, 31, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(108, 92, 231, 0.1);
}

.post-tags-section span {
    color: #b2bec3;
    margin-right: 10px;
}

.post-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(108, 92, 231, 0.1);
    color: #6c5ce7;
    border-radius: 20px;
    margin-right: 10px;
    margin-bottom: 10px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.4s ease;
    border: 1px solid rgba(108, 92, 231, 0.3);
}

.post-tag:hover {
    background: #6c5ce7;
    color: #f1f1f1;
    transform: translateY(-3px);
}

.post-share {
    margin: 30px 0 40px;
    padding: 20px;
    background: rgba(24, 25, 31, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(108, 92, 231, 0.1);
}

.post-share span {
    color: #b2bec3;
    margin-right: 15px;
}

.share-btn {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(24, 25, 31, 0.5);
    color: #b2bec3;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.share-btn:hover {
    background: #6c5ce7;
    color: #f1f1f1;
    transform: translateY(-5px);
}

.share-btn:nth-child(2):hover {
    background: #1da1f2;
}

.share-btn:nth-child(3):hover {
    background: #4267b2;
}

.share-btn:nth-child(4):hover {
    background: #0077b5;
}

.share-btn:nth-child(5):hover {
    background: #bd081c;
}

.share-btn:nth-child(6):hover {
    background: #00cec9;
}

.author-bio {
    display: flex;
    align-items: flex-start;
    background: linear-gradient(145deg, rgba(24, 25, 31, 0.8), rgba(15, 16, 20, 0.9));
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 60px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(108, 92, 231, 0.1);
}

.bio-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-right: 25px;
    border: 3px solid rgba(108, 92, 231, 0.3);
}

.bio-info {
    flex: 1;
}

.bio-info h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #00cec9;
}

.bio-info p {
    color: #b2bec3;
    margin-bottom: 20px;
    line-height: 1.8;
}

.author-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(24, 25, 31, 0.5);
    color: #b2bec3;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: all 0.4s ease;
    border: 1px solid rgba(108, 92, 231, 0.1);
}

.author-social a:hover {
    background: #6c5ce7;
    color: #f1f1f1;
    transform: translateY(-3px);
}

.related-posts {
    margin-bottom: 60px;
}

.related-posts h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #00cec9;
    position: relative;
    padding-bottom: 10px;
}

.related-posts h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: #ff7675;
}

.related-grid {
    display: flex;
    gap: 25px;
}

.related-card {
    flex: 1;
    background: linear-gradient(145deg, rgba(24, 25, 31, 0.7), rgba(15, 16, 20, 0.8));
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    border: 1px solid rgba(108, 92, 231, 0.1);
}

.related-card:hover {
    transform: translateY(-10px);
}

.related-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.related-card:hover .related-img {
    transform: scale(1.05);
}

.related-card h4 {
    padding: 20px 20px 10px;
    font-size: 18px;
}

.related-card h4 a {
    color: #f1f1f1;
    text-decoration: none;
    transition: color 0.4s ease;
}

.related-card h4 a:hover {
    color: #00cec9;
}

.related-date {
    padding: 0 20px 20px;
    color: #b2bec3;
    font-size: 14px;
}

.post-comments {
    background: linear-gradient(145deg, rgba(24, 25, 31, 0.8), rgba(15, 16, 20, 0.9));
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(108, 92, 231, 0.1);
}

.post-comments h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #00cec9;
}

.comment-form {
    margin-bottom: 40px;
}

.comment-form h4 {
    font-size: 18px;
    margin-bottom: 15px;
}

.comment-form textarea {
    width: 100%;
    padding: 15px;
    background: rgba(24, 25, 31, 0.5);
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: 8px;
    color: #f1f1f1;
    min-height: 120px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 15px;
}

.submit-comment {
    background: #6c5ce7;
    color: #f1f1f1;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.submit-comment:hover {
    background: #00cec9;
    transform: translateY(-3px);
}

.comments-list {
    margin-bottom: 30px;
}

.comment {
    display: flex;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comment:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
    border: 2px solid rgba(108, 92, 231, 0.2);
}

.comment-content {
    flex: 1;
}

.comment-content h5 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #f1f1f1;
}

.comment-date {
    color: #b2bec3;
    font-size: 14px;
    margin-left: 10px;
    font-weight: normal;
}

.comment-content p {
    color: #b2bec3;
    margin-bottom: 10px;
}

.reply-btn {
    background: none;
    border: none;
    color: #6c5ce7;
    cursor: pointer;
    padding: 5px 0;
    font-size: 14px;
    transition: all 0.4s ease;
}

.reply-btn:hover {
    color: #00cec9;
}

.comment.reply {
    margin-left: 30px;
    margin-top: 20px;
}

.load-more-comments {
    display: block;
    margin: 20px auto 0;
    background: transparent;
    border: 1px solid rgba(108, 92, 231, 0.3);
    color: #6c5ce7;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.load-more-comments:hover {
    background: #6c5ce7;
    color: #f1f1f1;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .related-grid {
        flex-direction: column;
    }

    .related-card {
        width: 100%;
    }
}

@media (max-width: 992px) {
    .post-header h1 {
        font-size: 34px;
    }

    .nav-container {
        padding: 18px 20px;
    }

    .nav-links li {
        margin-left: 20px;
    }

    .nav-links a {
        font-size: 16px;
    }

    .related-grid {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .post-container {
        padding: 120px 20px 20px;
    }

    .post-content-wrapper {
        padding: 25px;
    }

    .post-meta-full {
        flex-direction: column;
        align-items: flex-start;
    }

    .post-author {
        border-right: none;
        padding-right: 0;
        margin-bottom: 15px;
    }

    .related-grid {
        flex-direction: column;
    }

    .author-bio {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .bio-avatar {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .footer-section {
        width: 100%;
        float: none;
        margin-bottom: 40px;
    }

    .nav-links {
        display: none;
    }

    .post-body h2 {
        font-size: 24px;
    }

    .post-body h3 {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .post-header h1 {
        font-size: 28px;
    }

    .logo-text {
        font-size: 24px;
    }

    .post-comments {
        padding: 25px;
    }

    .comment.reply {
        margin-left: 15px;
    }
}
